package de.gameduell.framework.modules.event
{
	import de.gameduell.net.src.communication.ServerMessageEvent;
	
	/**
	 * setup [numberOfPlayers] [numberOfRounds] [masters: yes=1/no=0]
	 **/
	public class SetupEvent extends NetworkEvent
	{
		public static const SETUP:String = "setup";

		public var numberOfPlayers:int;
		public var numberOfRounds:int;
		public var isMasters:Boolean;
		
		public function SetupEvent(event:ServerMessageEvent) {
			super(SETUP);
			
			numberOfPlayers = int(event.parameters[0]);
			numberOfRounds = int(event.parameters[1]);
			isMasters = (event.parameters[2] == "1");
		}

	}
}